set relPath=design
rem 压缩工具路径
set compressTool=yuicompressor.jar
rem 输出路径
set outPath=runtime
set miniPath=\linb.js
set allPath=\linb-all.js
set rawPath=\linb-raw.js
set debugPath=\linb-debug.js

rem ==================
rem for mini  code
rem ==================
copy %relPath%\js\linb.js /b + %relPath%\js\DataBinder.js /b + %relPath%\js\Event.js /b + %relPath%\js\CSS.js /b + %relPath%\js\Dom.js /b  + %relPath%\js\Template.js /b + %relPath%\js\DragDrop.js /b+ %relPath%\js\Cookies.js /b + %relPath%\js\History.js /b + %relPath%\js\Tips.js /b linb.js

java -jar %compressTool% -o  %outPath%\js%miniPath% linb.js
 
del /q linb.js

rem ==================
rem for all  code
rem ==================
copy %relPath%\js\linb.js /b + %relPath%\js\DataBinder.js /b +  %relPath%\Locale\en.js /b + %relPath%\js\Event.js /b  + %relPath%\js\Date.js /b + %relPath%\js\CSS.js /b + %relPath%\js\Dom.js /b + %relPath%\js\Template.js /b  + %relPath%\js\Com.js /b + %relPath%\js\Cookies.js /b + %relPath%\js\MessageService.js /b+ %relPath%\js\XML.js /b + %relPath%\js\XMLRPC.js /b + %relPath%\js\SOAP.js /b + %relPath%\js\DragDrop.js /b + %relPath%\js\Tips.js /b + %relPath%\js\History.js /b + %relPath%\js\ComFactory.js /b  + %relPath%\js\Debugger.js /b + %relPath%\js\UI.js /b + %relPath%\js\UI\Image.js /b +%relPath%\js\UI\Flash.js /b + %relPath%\js\UI\Border.js /b + %relPath%\js\UI\Shadow.js /b + %relPath%\js\UI\Resizer.js /b  + %relPath%\js\UI\Block.js /b + %relPath%\js\UI\Label.js /b + %relPath%\js\UI\ProgressBar.js /b + %relPath%\js\UI\Button.js /b + %relPath%\js\UI\CheckBox.js /b+ %relPath%\js\UI\Slider.js /b + %relPath%\js\UI\Input.js /b + %relPath%\js\UI\RichEditor.js /b + %relPath%\js\UI\ComboInput.js /b + %relPath%\js\UI\Group.js /b  + %relPath%\js\UI\ColorPicker.js /b + %relPath%\js\UI\DatePicker.js /b + %relPath%\js\UI\TimePicker.js /b + %relPath%\js\UI\List.js /b + %relPath%\js\UI\Gallery.js /b + %relPath%\js\UI\IconList.js /b + %relPath%\js\UI\Panel.js /b + %relPath%\js\UI\PageBar.js /b + %relPath%\js\UI\Tabs.js /b + %relPath%\js\UI\Stacks.js /b + %relPath%\js\UI\ButtonViews.js /b + %relPath%\js\UI\RadioBox.js /b + %relPath%\js\UI\StatusButtons.js /b + %relPath%\js\UI\TreeBar.js /b + %relPath%\js\UI\TreeView.js /b + %relPath%\js\UI\PopMenu.js /b + %relPath%\js\UI\MenuBar.js /b + %relPath%\js\UI\ToolBar.js /b + %relPath%\js\UI\Layout.js /b+ %relPath%\js\UI\ColLayout.js /b + %relPath%\js\UI\TreeGrid.js /b + %relPath%\js\UI\Slider.js /b + %relPath%\js\UI\Dialog.js /b linb.js

java -jar %compressTool% -o  %outPath%\js%allPath% linb.js
java -jar %compressTool% -o  %outPath%\js%rawPath%   --nomunge  linb.js
copy linb.js  %outPath%\js%debugPath%

del /q linb.js

pause